import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useTimeStore = defineStore('time', () => {
  const year = ref('1970')

  function setYear(newYear) {
    year.value = newYear;
  }

  return { year, setYear }
})
